<?php

namespace App\State;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class PublishState extends AbstractState
{

    public function acceptOrderEvent(Context $context)
    {
        //把当前状态设置为  NotPayState。。。
        //至于应该变成哪个状态，有流程图来决定

        $context->setState(new NotPayState());
        $this->getCurrentState();
    }
    public function notPeopleAcceptEvent(Context $context)
    {
        $context->setState(new FeedBackState());
        $this->getCurrentState();
    }
    public function getCurrentState()
    {

        return StateEnum::FEED_BACKED;
    }
}
